﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using DataAccess;
using SPIWareMVVM.ViewModels;

namespace SPIWareMVVM.Views
{
    /// <summary>
    /// Interaction logic for CustomerEdit.xaml
    /// </summary>
    public partial class CustomerEdit : UserControl
    {
        public CustomerEdit()
        {
            InitializeComponent();
        }
        protected void AddNewAddress(object sender, EventArgs e)
        {
            ContactInfo ci = ApplicationData.NewContact();
            ci.ContactTypeId = 0;
        }
        protected void Address_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (e.AddedItems.Count > 0)
                dpAddressEdit.Visibility = Visibility.Visible;
            //else HideEdits();
        }
    }
}
